f6a898613aa19cbf7e1dad2a318b356a3c9845d2,alogic-common/src/main/java/com/alogic/xscript/plugins/Template.java,Template,onExecute,#Map#Map#LogicletContext#ExecuteWatcher#,73

Before Change


	protected void onExecute(Map<String, Object> root,
			Map<String, Object> current, LogicletContext ctx, ExecuteWatcher watcher) {
		String tagValue = ctx.transform(tag);
		if (current != null && content != null && StringUtils.isNotEmpty(tagValue)){
			Object template = provider.parse(content);
			current.put(tagValue, template);
			if (template instanceof Map){

After Change


					super.onExecute(root, current, ctx, watcher);
				}else{
					String tagValue = ctx.transform(tag);
					if (StringUtils.isNotEmpty(tagValue)){
						current.put(tagValue, template);
						super.onExecute(root, (Map<String,Object>)template, ctx, watcher);
					}
				}
			}else{
				String tagValue = ctx.transform(tag);
				if (StringUtils.isNotEmpty(tagValue)){
					current.put(tagValue,template);
				}
			}